<?php /* Created on: 5/6/2010 */ ?>
<html>
<body>
<?php

include "connect.php";

$waterselect = $_REQUEST['waterselect'];
$id = $_REQUEST['id']; 
 print("  id: = $id\n");
 print("  water: = $waterselect\n");
/*$id = '1'; */
$ok1 = @mysql_query("DELETE FROM $waterselect WHERE ID='$id'");
if ($ok1) {
  echo('<p>Data deleted successfully!</p>');
} else {
  echo('<p>Error deleting data from database!<br />'.
       'Error: ' . mysql_error() . '</p>');
}
 $url = $_SERVER['HTTP_REFERER']; 
 echo '<meta http-equiv="refresh" content="1;URL=' . $url . '">';
?>

</body>
</html>
